// ignore_for_file: deprecated_member_use

import 'package:flutter/material.dart';
import 'package:flutter_widget/custom/custom_appbar.dart';

// ignore: must_be_immutable
class StackPage extends StatelessWidget {
  String name;
  StackPage({Key? key, required this.name}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: CustomAppbar(name, Theme.of(context).primaryColor),
      body: Center(
        child: Column(
          children: [
            Container(
              color: Colors.grey,
              width: double.infinity,
              height: 600,
              child: Stack(
                alignment: Alignment.topCenter,
                children: [
                  Container(
                    color: Theme.of(context).primaryColor,
                    width: 100,
                    height: 100,
                  ),
                  Positioned(
                      width: 120,
                      height: 60,
                      top: 60,
                      right: 60,
                      child: Container(
                        color: Colors.white,
                      ))
                ],
              ),
            )
          ],
        ),
      ),
    );
  }
}
